package designMode.single;

/**
 * @Author 肖地洋
 * @Date 2022/8/12 15:21
 */
public class HungrySingle {

    private static final HungrySingle INTANCE = new HungrySingle();

    private HungrySingle(){
        System.out.println("LazySingle()");
    }
    public static HungrySingle getInstance(){
        return INTANCE;
    }
    public static void main(String[] args) {
        HungrySingle o1 = HungrySingle.getInstance();
        HungrySingle o2 = HungrySingle.getInstance();
        HungrySingle o3 = HungrySingle.getInstance();

        System.out.println();
    }
}
